package com.region.spring.annotation;

import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @author liujieyu
 * @date 2024/7/17 17:03
 * @desciption
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(RegionConfigurerRegistrar.class)
@Documented
public @interface RegionAdapterSpring {

    /**
     * The bean name of region client factory in the spring context
     * Specifies which {@code RegionClientFactoryBean} to use in the case that there is more than one in the spring context.
     * Usually this is only needed when you have more than one factory.
     *
     * @return
     */
    String factoryBeanRef() default "";

    /**
     * Base packages to scan for Region http client interfaces.
     *
     * @return
     */
    String[] value() default {};

}
